//中介
public class Proxy implements Rent {
    private Master master;

    public Proxy(Master master) {
        this.master = master;
    }

    @Override
    public void rent() {
        //先看房
        see();
        //房东给价
        master.rent();
        //收费
        fare();
    }

    /**
     * 看房
     */
    public void see(){
        System.out.println("带客户看房");
    }

    /**
     * 收费
     */
    public void fare(){
        System.out.println("收取费用");
    }
}
